<form id="AlbumApproval_form" action="{url link='admin.music.albums'}" method="post">
<table class=forumline cellSpacing=0 width="100%" id="album_table">
    <tr>
        <td class="row-header" colspan="6"><span>{language text="albums_for_approval"}</span></td>
    </tr>
    {if !getParam('music_album_approving')}
    <tr>
    	<td>
		<div class="message_info" style="font-size:10pt;">
				{language text='Mod_Music.approval_info_album'}
		</div>
		</td>
	</tr>		
    {else}
    <tr>
        <td class="catBottom" colspan="5">{language text="here_you_can_approve_music_albums"}</td>
        <td class="catBottom" colspan="1">
        {language text="show"} &nbsp;&nbsp;
            <select name="albums_page_size" onchange="makeIt('AlbumApproval_form','{url link='current' pageA=1}');">
                {html_options options=$aAlbumsPageSize selected=$defAlbumsPageSize}
            </select>
        &nbsp;&nbsp;{language text="albums_per_page"}
        <input type="hidden" name="old_albums_page_size" value="{$defAlbumsPageSize}" />
        </td>
    </tr>
    <tr>
        <th style="font-size:9pt; text-align:center;" class="row1">
            <input id="All_album" type="checkbox" onClick="CheckAll('AlbumApproval_form','sel_albums[]', document.getElementById('All_album').checked);">
        </th>
        <th style="font-size:9pt;">
            <span><a href="{$aSorting.musician_name.url}" style="color:#FFFFFF">{language text="musician"}</a><img src="design/pic/{$aSorting.musician_name.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.album_title.url}" style="color:#FFFFFF">{language text="album_title"}</a><img src="design/pic/{$aSorting.album_title.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.genre_name.url}" style="color:#FFFFFF">{language text="genre"}</a><img src="design/pic/{$aSorting.genre_name.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.user_name.url}" style="color:#FFFFFF">{language text="from_member"}</a><img src="design/pic/{$aSorting.user_name.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.album_cdate.url}"  style="color:#FFFFFF">{language text="date"}</a><img src="design/pic/{$aSorting.album_cdate.img}"></span>
        </th>
    </tr>
	{foreach from=$aAlbums item=aAlbum name=album}
    <tr>
        <td class="row1" style="text-align:center;"><input name="sel_albums[]" value="{$aAlbum.album_id}" id="{$aAlbum.album_id}" type="checkbox"></td>
        <td class="row2">{$aAlbum.musician_name}</td>
        <td class="row2"><a href="{url link='admin.music.view-album' id=$aAlbum.album_id}">{$aAlbum.album_title}</a></td>
        <td class="row2">
        {if $aAlbum.genre_name}
            {language translate=$aAlbum.genre_name}
        {else}
            Unknown
        {/if}
        </td>
        <td class="row2"><p>{$aAlbum.user_name}</p></td>
        <td class="row2">{$aAlbum.album_cdate}</td>
    </tr>
	{foreachelse}
    <tr>
    <td style="text-align:center" colspan="6" align="center"><div class="message_info">{language text="there_are_no_unapproved_albums"}</div></td>
    </tr>
	{/foreach}
  <tr>
    <td colspan="6" class="catBottom" style="text-align:center;">
		<input name="approve" value="{language text="approve_album"}" type="submit">
        <input name="delete" value="{language text="delete_albums"}" type="submit" onclick="return sure('');">
	</td>
    <tr>
    	<td class="catBottom" colspan="6">
        {include file="`$sRootPath`/_blocks/pager.html"}
    </td>
  </tr>
  {/if}
</table>
</form>